package com.mmall.service;

import com.mmall.common.ServerResponse;
import com.mmall.vo.CartVo;

public interface ICartService {

    ServerResponse addCart(Integer userId, Integer count, Integer productId);

    ServerResponse<CartVo> updateCart(Integer userId, Integer count, Integer productId);

    ServerResponse<CartVo> deleteCartProducts(Integer userId,String productIds);

    ServerResponse<CartVo> listCart(Integer userId);

    ServerResponse selectOrUnSelectAll(Integer userId,Integer checked);

    ServerResponse<CartVo> selectOrUnSelect(Integer userId,Integer productId,Integer checked);

    ServerResponse<Integer> getCartProductCount(Integer userId);
}
